package org.example.sringbootdemo.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.sringbootdemo.entity.Fruit;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface FruitMapper {
    List<Fruit> findAll();
    Fruit findByCode(String code);
    Fruit findByPrice(BigDecimal price);
    int insert(Fruit goods);
    int update(Fruit goods);
    int deleteByCode(String code);
}